package com.qf.main.login.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;

/**
@author chengqiang
@Create 2024-02-27-15:17
@Description:
*/

/**
 * user表
 */
@ApiModel(description = "user表")
@Data
@TableName(value = "sys_user")
public class SysUser {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "主键")
    private Integer id;

    /**
     * 账号
     */
    @TableField(value = "username")
    @ApiModelProperty(value = "账号")
    private String username;

    /**
     * 密码
     */
    @TableField(value = "`password`")
    @ApiModelProperty(value = "密码")
    private String password;

    /**
     * 真实名字
     */
    @TableField(value = "`name`")
    @ApiModelProperty(value = "真实名字")
    private String name;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    @ApiModelProperty(value = "邮箱")
    private String email;

    /**
     * 手机
     */
    @TableField(value = "phone")
    @ApiModelProperty(value = "手机")
    private String phone;

    /**
     * 创建时间
     */
    @TableField(value = "create_date")
    @ApiModelProperty(value = "创建时间")
    private Date createDate;

    /**
     * 1删除 0正常
     */
    @TableField(value = "del_status")
    @ApiModelProperty(value = "1删除 0正常")
    private Integer delStatus;

    /**
     * 头像
     */
    @TableField(value = "img")
    @ApiModelProperty(value = "头像")
    private String img;

    public static final String COL_ID = "id";

    public static final String COL_USERNAME = "username";

    public static final String COL_PASSWORD = "password";

    public static final String COL_NAME = "name";

    public static final String COL_EMAIL = "email";

    public static final String COL_PHONE = "phone";

    public static final String COL_CREATE_DATE = "create_date";

    public static final String COL_DEL_STATUS = "del_status";

    public static final String COL_IMG = "img";
}